home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0115-DeselectEditText Bu-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-20  |  1.2 KB  |  41 lines  |  [TEXT/GEOL]

  1. Item    5156731                         17-Oct-89        17:45
  2.  
  3. From:   D2086                           Efficient Field Svc, C Faith,PRT
  4.  
  5. To:     MACAPP.TECH$                    MACAPP Tech
  6.  
  7. cc:     APPLE.BUGS                      Apple Bugs Reporting
  8.         MACAPP.TEST                     MacApp SQA Team
  9.  
  10. Sub:    DeselectEditText Bug
  11.  
  12. I think I have found another MacApp 2.0B9 BUG!
  13.  
  14. TDialogView.DeselectCurrentEditText and TEditText.StopEdit do nothing to change
  15. gTarget from being the EditText that was deselected.
  16.  
  17. What this means is that TEditText.DoMouseCommand bombs when a mouse is pressed
  18. in a TEditText item and nothing else has been done to change the value of
  19. gTarget.
  20.  
  21. FUNCTION TEditText.DoMouseCommand(VAR theMouse: Point; VAR info: EventInfo;
  22.      VAR hysteresis: Point): TCommand; OVERRIDE;
  23.  
  24.    BEGIN
  25.    IF gTarget <> SELF THEN
  26.    DoChoice(SELF, fDefChoice);
  27.  
  28.    { Make sure we were in fact selected before passing along the mouse click }
  29.    IF gTarget = SELF THEN
  30.    DoMouseCommand := fTEView.DoMouseCommand(theMouse, info, hysteresis)
  31.    ELSE
  32.    DoMouseCommand := gNoChanges;
  33.    END;
  34.  
  35. The DoChoice is not executed and hence when you get below gTarget is = to SELF
  36. and fTEView is NIL;  (because DoChoice was not executed)
  37.  
  38. - Curtis
  39.  
  40.  
  41.